package com.alpha.user.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alpha.core.controller.BaseController;
import com.alpha.mybaits.mapper.TcSystemConfigMapper;
import com.alpha.mybaits.model.TcSystemConfig;

@RestController
public class UserController extends BaseController {

	
	
	@Autowired
	private TcSystemConfigMapper systemConfigMapper;
	
	
//	 @RequestMapping(value ="/hello/{name}", method = RequestMethod.GET)
	 public List<TcSystemConfig> helloUser(@PathVariable String name){
		 return  systemConfigMapper.selectAll();
	 }
	 
	 @RequestMapping(value ="/test")
	 public String test(String name){
		 System.out.println("success test");
		 
		 return "test";
	 }
	 
	   
}
